<template>
  <div>
    <h1>这是父组件</h1>
  {{dom}}
    <hr />
    <jian :msg="msg" @handechange="handleClick" />
  </div>
</template>

<script>
import jian from "./jian";
export default {
  components: {
    jian,
  },
  data(){
    return{
        msg:'父组件传递给子组件的数据',
        dom:''
    }
  },
  methods:{
    handleClick(value){
        this.dom=value
    }
  }
};
</script>

<style>
</style>